Package-level declarations

Types

Link copied to clipboard
data class AnimationProp(val enterDuration: Int, val exitDuration: Int, val delay: Int = 0, val easing: Easing, val initialAlpha: Float = 0.92f)
Link copied to clipboard
Link copied to clipboard
data class DropDownMenuColors(val backgroundColor: Color, val contentColor: Color)
Link copied to clipboard
enum Easing : Enum<Easing>

Represents different easing options for animations.

Link copied to clipboard

MetaphorEnterAnimation is the collection of the enter animations.

Link copied to clipboard
annotation class MenuDSL
Link copied to clipboard
data class MenuItem<T : Any>(val id: T? = null, val title: String = "")

Properties

Link copied to clipboard

Functions

Link copied to clipboard
fun CascadeHeaderItem(title: String, contentColor: Color, onClick: () -> Unit)

Represents a header item of the menu.

Link copied to clipboard
fun <T> ChildItem(id: T, title: String, icon: ImageVector?, contentColor: Color, onClick: (T) -> Unit)

Represents a child item of the menu.

Link copied to clipboard
fun <T : Any> Dropdown(modifier: Modifier = Modifier, isOpen: Boolean, menu: MenuItem<T>, colors: DropDownMenuColors = dropDownMenuColors(), offset: DpOffset = DpOffset.Zero, enter: EnterAnimation = EnterAnimation.FadeIn, exit: ExitAnimation = ExitAnimation.FadeOut, easing: Easing = Easing.FastOutLinearInEasing, enterDuration: Int = 500, exitDuration: Int = 500, onItemSelected: (T?) -> Unit, onDismiss: () -> Unit)

Dropdown is a DropdownMenu wrapper class to add cascade effect and animations.

Link copied to clipboard
fun <T : Any> DropdownContent(targetMenu: MenuItem<T>, onItemSelected: (T?) -> Unit, colors: DropDownMenuColors, onParentClick: () -> Unit, onChildClick: (T) -> Unit)

Represents menu content properties for a dropdown menu.

Link copied to clipboard
Link copied to clipboard
fun dropDownMenuColors(backgroundColor: Color = MaterialTheme.colors.surface, contentColor: Color = MaterialTheme.colors.onSurface): DropDownMenuColors
Link copied to clipboard
Link copied to clipboard
actual fun getPlatformName(): String
expect fun getPlatformName(): String
actual fun getPlatformName(): String
actual fun getPlatformName(): String
Link copied to clipboard
fun MenuItem(onClick: () -> Unit, content: @Composable RowScope.() -> Unit)

Wrapper for handling onClick and user interaction for a dropdown MenuItem.

Link copied to clipboard

Displays an icon for the MenuItem.

Link copied to clipboard
fun MenuItemText(modifier: Modifier, text: String, color: Color, isHeaderText: Boolean = false)

Displays text for the MenuItem.

Link copied to clipboard
fun <T> ParentItem(id: T, title: String, icon: ImageVector?, contentColor: Color, onClick: (T) -> Unit)

Represents a parent item of the menu.

Link copied to clipboard

Adds space content.